allows escape to close modal box