Checking the current page to set the layout style