changes the structure of the nav