setting navigation state