added more functionality to student add dialog