add a dropdown menu to select the query type