A transgender girl detained without criminal charges for two months at an adult women’s prison in Connecticut has been moved to a psychiatric center for children following an outcry by her supporters.

Department of Children and Families Commissioner Joette Katz says the teenage girl was moved Tuesday to the Solnit Children’s Psychiatric Center, a DCF-run facility in Middletown. The girl had been detained at the York Correctional Institution in Niantic since April.

A state judge in April ordered the girl transferred from DCF custody to Department of Correction custody, because DCF officials said she was too violent for them to handle.

The girl’s lawyer says she is a sexual abuse victim and has many mental health needs. Her supporters had protested what they called her solitary confinement at the prison.