making navigation dynamic