change template map retrieval to viewmanager in contact mail factory