Pagination added and made some modifications in view.html to style the pagination