First load, assigns value to currentSwitch