guiframe: only create the toolbar if needed