moved the onMessage part of the extension in messaging sample to an event page, so it can receive message even when the popup is not showing.