Fixed edit bug where it woudlnt udpate the detail view