navigation module logic