refactor menu impl to hide after menu selection.