cancel table deletion by clicking away from button