minor tweak of the cancel input