restore selected navigation item when a task is deleted.