modify the trigger of menu mode, not finished, in comment.