refactored saveText action into getText and mapText