preparing template with isDefault attribute