adda new posts.php controller