fix to change bug with ui stuff not being on main thread