added pagination for front page and cleaned up templates