refactor alerts layouts to centralize it on default and if theme