im an idiot, but it finally dawned on me that I can't have duplicate ids on the same page, and now the menus finally work