wrote updateTimes method and team change event