update some function and pages