handle the edit view to receive text to edit and return the updated text