format code in navbar_menu