Iowa juvenile detention facility ordered to fix treatment issues