query to 1 and 3
added buttons to navigate between queries