improved cancel refresh