added code for student courses edit