readded the escape to close