add functional to get dialogs and messages