update with add remove category in edit mode