added posts and pagination
added posts and pagination