template editing mode with iframe