fit the menu to the functions