* action var was not being set in some cases, fixed that.
* added 'autofocus' to the appropriate form fields for all the new/edit templates