nav generator added. todo fix functions