Add support for modals, and make add pane flow use a modal.