Rewrite using Future from the stdlib Directly execute if on main thread Put UI worker onto click context