update some functions of GUI