Add student and refactoring of edit