set completed and important, delte and add new tasks