Implement modal control for controller.