used more appropriate event for text changed