more work on default template and the code iframe