Fix admin panel to use new api method