update category add and edit