connected controller to view