isolated navigate funciton