refactor homepage menu