fix delete button bug on IP edit page