getting controller to work