added pagination to html view