add sidenav for pages, rework layout to adapt to small sizes by moving sidenav to bottom