Added controller to wire up view and input