Add OnTabSelected callback when tab has been selected.