Pagination

Added pagination as well as a loading graphic to show a query is working.