added block and template file