refactoring error alerts
Merge remote-tracking branch 'origin/master'