Hey guys, I'm trying to repair a lamp and had some questions. I've attached a pic of the lamp and the pcb. Basically the wiper in the pot is busted and not making a clean connection, so the light goes on and off and from dim to really bright sporadically. So, it's either I replace the old pot on the board or I just design another board in place of the one already there. I'd like to design a new board in place of that one but don't really have experience designing a circuit. I assume there is a 12v 120ac signal coming which I input to the pot, but then it looks like there are 2 caps and a resistor in parallel with the pot? It also looks like a voltage regulator is on there? Or is that a transistor? The part number on it says BTA12 400C C514. Any help is appreciated, thanks guys.