added check for sampleId in url for all 4 sample views