fixed issue so that completed header hides when tasks are deleted instead of undone