is there a better way we can figure out how to find which tab was clinked rather than going to the parent?