added tuition save
refactoring the javascript implementation.

todo:
fix the bug of editing them
contiously refactoring the java script code, like duplicated code.