refactor edit into show and edit