updated message handler for modal controller