#194 pulled out edit messages dialog into XML