updated application helper to make failure alerts style correctly using alert danger