create controller and view income