added pagination on home page, and single.php for posts