refact mail form template for new schemas