added controller and view