fix layouts for mail templates