Added modal-dialog box functionality.