Fix tab reselection caused title become not selected

Fix tab reselection caused title become not selected and add onTabReselected() callback function