passing controllers to views