added update feature and add item feature based on category id