update resource controller