small changes in index for proper funcitioning of navigations.