Add codetemplate and textarea