Add ajax to task form