create a directive in menu service