update template to include error class on container