code: function layoutChanged(oldpage, newpage) {
        if (oldpage && oldpage.fixlayout) return true;
        if (lang(oldpage) !== lang(newpage)) return true;
        var currentlayout = $layout.attr('data-render-layout') || 'main-layout';
        var newlayout = generator.layoutTemplate(newpage);
        return (newlayout !== currentlayout);
      }
docs: return true if newpage layout is different from current layout