replace deprecated pageWithSidebar with sidebarLayout