Automatic control mode change