/LOW PAY - looking for help when issues arise (widgets issue atm)

I get what you are trying to do and like Ricardo said you probably want to be use widget switcher. Also,in your code it looks like after you create the widget you may not be adding it to the viewport.