last category id stores in root scope