ajax pagination-and filtration done for purchases