You are using same event twice, the second one will get triggered because the first one overwrites it.
You need to add extra conditions to prevent it from happening, you can add invisible objects on the menu and check if the player touched them instead the menu itself.