added a page if query is successful