fix dashboard layout and router so that views properly display when the back button is clicked or the user navigates to the root path