wrap title in block, rename body_styles to styles and move to head, fixed var name