Changed removePublicAccess and retractFromPublic to take sampleId as param