fix template to use message instead of render