Added creation of a window that closes after user hit esc