adds pagination with foundation styling