Added functional to change tab name color when tab is selected