navbar optimations