moved the controller to the route section in the config

moved the controller from the  views to the states in the config