Added handle messages on main thread for request and published event receiving