fix a threading issue where a view call was not performed on main thread