Remove global $ag from dashboard, use local ref