edit template loading