add the menu function.