added CRUD handling from lynda tutorial