Change categories when editing a rule

#165 
I have just been playing around with this and confirmed that this function works flawlessly and is more flexible for being able to move any rule or category around.