edit and update for student