provide swapIndex in navmenu