Extend pagination component and made it less reliant on position of page
Improved layout class names