add default copy to clipboard code to template. closes #405