making code a bit more DRY by nesting blocks title and header in templates