adding edit capability to dataMngr.js