dealt with begin and end updates on main thread