got the saveTextFromTextField() function working