fixed deprecation warning in template
added block support for result displaying customization