Judge addresses juvenile detention needs