Ajax base pagination, hide div for search