Move tab event listener to tab strip, and copy pinned attribute to small badge