Added rest call to rest/sample/edit?sampleId=