connected controller to view with