updating logic after edit and new tasks