added ui_menu function to ui module