Adding paginations and CSS