fixed destroy dependence, popup close on relation remove