Centralized notification display logic in one function. Added
notifications to be shown when URL is internal or there's a request
error. Close non critical notifications automatically after 10 seconds.
Prevent simultaneous opening of multiple dialogs.