make exit menu actually work