updated editItem function
added txt file