Added controller for preloading
Set up in app.js