added pagination to front page