move generate menu to helper
fix infinite loop
multilevel navbar categories menu