refactoring message manager  , data was not updated on gui .