refactoring, start work with modalmessage