Improved MainThreadDispatcher(more threadsafety, more responsiveness)