Edit teacher details in dropdown