application.js: use a stackswitcher and fix the buttons for the listview