One possible problem I see is the code does not use the value returned by the menu() method.