initial navigation code