fixed 'Header (CSS) and footer (JS) are not being added to layouts as expected' issue