switch on/off flash option