fixed update and added delete resource