Move finished tasks to different tabs and stores depending on whether they were completed or cancelled. Several bugfixes also