edit item fixed, cleanup function added to clean up textareas while editing