Adding a method for Bootstrap alerts