updated on click handler for completed tasks