Moved templates to ResourceDictionary