template callback is ran with context as this