add set selected text color
add a listener when tab is clicked