took out the menu creation into its own factory