Make tab link class names update on click