add save and delete methods to app.js