handle edit-text events correctly