added edit functions in app.js, index.js, need to change forms and add