made nav functional