Ajax post works. Trying to get pagination to work