add resource edit feature