create menu and share directives