fix missing import and show_mode