added pagiantion for posts, minor changes