Edit resource