calling rootcontrol only once in app.js instead of in page