added some functionality to the detail view