changes in category saving logic
core data changes