Generate navigation bar dyamically.