change search query from post to get method and use of query string q