Added changing of task status after popup.