added controller and models