added modes and controls