Fixed running UI Code on non main queue bug