added session remembering of page and search terms for users