added controller and view files