template edits for better minification