re-import menu code