change activity to resource