Add helpers for closing panes