code cleanup show alert for fail/save commit