slight refactor of menuitem api