move "set_menu_item" to be implemented via lua rather than C++