Bluetooth BLE relay app with toggle switch

I want to make an app with a BLE module relay and control it with a app. It needs a toggle switch and a connected/disconnected status. Also for it to work it needs the BluetoohLE1 extention. I have watched mutiple tutorials and videos but just cant get it to work. Could you guys help me? Would realy appriciate it!

Ps i left the codes from the multiple attempts from early in the comments

https://drive.google.com/file/d/1Rrh-BDgWmJbXQsUWyjTcn5PDw_gslYTc/view?usp=drive_link This it codes in Google drive map