add resource edit feature
Merge pull request #3 from tackman/feature/edit-res

add resource edit feature