chapter 9 - create edit view