Q.Crown of thorns plant
I have a crown of thorns plant, I found out that it is very poisonous to animals as well as to humans so I moved it from one room in my house to another room because I have a cat! I had to go to a rehab facility and the plant did not get the proper light even though I had placed it as close to a window as possible however some of the branches were not getting adequate light and they grew toward the window becoming curvy and going in all kinds of direction numerous leaves had fallen off into the pot and there was several leaves on the plant that were yellow I have since repotted the plant but the branches are still going in all directions and I have placed small stakes inside the pot and tied the branches to them to try to get the branches to start growing straight and it is now outside, is this how I need to try to get the branches to grow straight and what do I need to do in order to correct the problem with the leaves turning yellow? Please note this is a BIG plant! I do not know why the leaves are turning yellow can you please give any advice on how I may save my plant and what may be the reason for the leaves turning yellow and then falling off! Anything that you would like to give advice on would greatly be appreciated especially since I am a beginner on knowing how to properly take care of the crown of thorns plant!

These articles will help you with care and pruning.
https://www.gardeningknowhow.com/houseplants/crown-of-thorns/growing-crown-of-thorns-outdoors.htm
https://www.gardeningknowhow.com/houseplants/crown-of-thorns/cutting-back-crown-of-thorns.htm