added functionality to edit messages