modify indext and navgate