Added scripts for autohighlighting selected tab