continue to refactor generation script
continue to refactor
move generation of navbar to separate function
almost finish refactoring of navbar generation
add divider feature and finish refactoring