Got paging working for the main page