Adding notice and alert in template