Change task deletion to use ajax