Controller structure added; mail template added