implemented adding and deleting of resources