refactor edit into show and edit
Merge pull request #706 from nla/js-refactor-projects

refactor edit into show and edit