complete update category, all hard stuffs are done.