Add update functionality to detail view.
Add update feature to detail view.