improved alert handling; allow passing a type grouper to re-use existing alert if possible; use type grouper when enable/disable apps in app gallery