update dashboard to return json and read by js