add some functions in main page