wrap IO action by doIOaction in updateFlagFromToggleUI. Created UIEvent type.
remove debug messages. identify them using "msgShout" function