clean up view_posts.php