toggleSelectionButtons() function needed to be passed the query string