undid the auto edit

the edit template needs a selected template, without it it breaks.  to
do auto edit, we need to revisit.