Changed the position and style of pagination.