update the ui for rules