refine code, confirm when delete an exists report