add top category update logic