Sort of componentize modal dialogs