Append the query history button for switching the query history tab on the query editor