on the way to auto highlight current tab