added ajax to index view