Now nav adds all buttons dynamically and in the correct order.