udpate main index