refactoring of ErrorPopup that was moved to uberfire