add alert in ui controller
fix jshints