some fixes to edit template screen