fixed error with checkbox (based on setup with update, it was calling function switch_position twice