Added code for dismissible alerts

Please merge after https://github.com/wet-boew/wet-boew/pull/5935 has been merged.