Escape button on modal working