show messages in template