Fixed pagination and bindvalue for search terms