Change categories when editing a rule

#165 
rulemenu is better ;)