added ajax to todo app