added ajax to index