Don't know what type of menu library you are talking about or even what code you are using. If I lived in your head, I'd ask your brain for all the above.
Well it seems to me that your connections to pin whatever are wrong and line something in your sketch is messed up as well. I suppose when my crystal ball gets back from the shop I can give you a more specific answer.Don
... the code is rather simple ...
What else do you need to know?