Better effect on modal close