#612 add state to detail view