fixed ajax and pagination for quotes