Switch function implemented for administrators