Added email overview and rest api for templates