update title for selected state