current page now resets to 1 when query changes