added modal dialog for messaging