Adds support for modals