mirror modes as hidden input