Change categories when editing a rule

#165 
instead of $entites, lets use `$rule_menu_items`