Change categories when editing a rule

#165 
change `$entity->get_parent_id()` to `$entity->get_id()` to work with my comment below about changing the move parent operator function.