Protect against repeated addition of the same rule in UI