added controller and post model