I am working with 2 different layouts, one for before login and another for after login.
Even after reading the instructions provided here, I am still struggling to understand why my app is displaying like this:
https://i.sstatic.net/UU0ZJ.png
It seems to be showing two views at once and allow scrolling through both. Here is the JavaScript code involved:
var mainView = myApp.addView('.view-main');
var anotherView = myApp.addView('.another-view');
//to call anotherView after login
mainView.router.load(anotherView);