fix UIImageView+HighlightedImage error and Restructure cancel logic