add cancel to stop render