check rule edit