Nav menu build function working