Change categories when editing a rule

#165 
Little mistake here I think. This ENDIF should be before`</select></dd>` ?