refactor send message to model