added func to remove href on resource