Remove unnecessary imports from modes_gui.