added additional edit template functionality
fixed tab format