Fixed pagination, added ability to export results to excel