fix text area from resetting to original value