edit resource