paginate posts
correctly searching