added functionality to look at pinned tabs and keep them if the users wants to.