renamed getTypes event to getTemplate
renamed types to templates