added text change behaviour