fix dashboard to use new api