renamed textToEdit to editText

renamed textToEdit global to editText for better consistency with
upcoming confirmEdit and revertEdit functions