menu auto-generation based on page weight