Move error_view's dom to template file.