updates value when textview is clicked