remove nsview on main thread to avoid thread issues