Add some new functions to menu and fix some errors