Add ajax for task deletion