Changed controller to application