Hi carlucci
I guess you forgot that the dropdown can be configured under 'Navigation' settings, your custom code is used to load a module position, not megamenu.
You should load megamenu element (which you commented) and change the menu in 'Navigation' settings as you wish: