added ability to switch between completed and current tasks.