added pagination
changed default number of posts per page to 12