refactored layout.jade