added function to change tab title/icon color when selected
added sample code using modified library