ch.9.2.1 added edit and update actions