add directive for a menu