Added pagination
added pagination to posts