admin - templateEditor

choosing a template now opens the editor.
some other bug fixes.