modified id functionality of CategoryModel