updating the detail view