refactor alerts to work with Bootstrap 3