add some function and menu exit