Change categories when editing a rule

#165 
Make an array or sth else?