extracted the menu to a directive.