created post controller