esc key functions when overlay is reset, to go back to already-rendered route