switch values set from gui