Changed the pagination to be a static method instead. Might want to make it a template part