completing fixes for ajax pagination