Adds modal dialogs, and context menus.