Added onTabOpen event