refactor links in menu with dropdown