remove unused alert
alert: s/error/danger/g for dynamic type setting