implement quick-toggle-buffer