Fix switch and resizing panes. Added ag, surround, and tabular