beauty pages and update some functions