add parent to rule, show error messages when saving incomplete rule