ajax filtering and pagination fixed