delete class structure and add escape button