added function to save list automatically on each new student name entery