update label when text changes