update staus in controller angular