subtab functionality from json