fix showCancel option

currently `showCancel` is not working(it's always showed). fixed that.