adding template block handler