Edit Rule Func.

Edit rule func.