remove toolbar in gui mode