add alert when save fails