Added support in the ContentController to close dialogs.