replaced all alert functions by bs alert components