But this is not working at all, not even getting the setup done so what is wrong/how should i fix it.
Who knows how that gigantic mess is supposed to work? It looks to me like you tossed every imaginable bell and whistle into the mix, hoping it would all somehow work.
Go back to the code that worked and work your way up, adding one new detail at a time, and solving one problem at a time.