This is an adapter box for a cheaper controller than the original controller which is smaller and has a lower max amperage and is almost double the price.
I used double sided tape to secure the controller in place; see the pictures. I was going to make snapping tabs for it to secure it to the aluminum stock bracket it but I decided against it. My reasoning was that I didn't wanted to have to remove the screws on the back of electrical box which are hard to get to if I need to work on the controller so this way is much easier and faster.
https://www.amazon.com/dp/B08HRL5W22?psc=1&ref=ppx_yo2ov_dt_b_product_details