added some panel switching in app.js. Not implemented in index yet