added admin for samples, fixing api