added: update end time and duration of last tracked task at start time