modal dialog and notification system