moved initialize function to app.js