mail templates and views refaktoring local.