Add flash message handling to ModalSelector

* also use stopPropagation to prevent duplicate messages