Unable to display one side menu out of two at a time

Hi There, I have added two menu in my app with different id and using MenuControl’s enable(), I am trying to display one menu out of two at a time. I have checked Conference App, and following similar steps. But still, I am seeing menu 1 always even it is disabled.

My code snippets are below:

As you can see, I have disabled loggedOutMenu and enabled loggedInMenu. But app is always displaying only loggedOutMenu.

Anybody from the forum, please help me. Thank you in advance