refactor node menu