modified window size
modified cancel action