update category api and catoegory data structure