pagination and searching back to old template