Added handler for click on TextEdit