make sure to highlight current tab correctly