Adding UI switch