added two functions for getting a new key and creating new text