made the changes to work with multiple textareas