use built in kill-buffer-and-window command