BY menu button, you do mean the MENU button on the remote?!
There is a simpler way to do this automatically - at least in your example.
Set the end jump from the main video track to the Main Menu and use Stories for entry and exit from the stories from the stories markers in the main timeline. In the stories editor, you can set the end jump back to the chapters menu.
In DVDSP you need to set the actually menu button to one place or another.