Update app.js and diarycardview.js