Fixed context problem with onTabChanging callback