ch1.1.5 edit controller & views