fixed categorynew and categorydelete