You have too many grounded wires .
ONLY the yellow / green gets grounded from the headlight .
The yellow / white and the blue go to the switch ...
Brown from the switch to tail ...
No dash lights = disconnect the block that the brown goes into .
And , the ground should be to the frame proper . Or , run a dedicated ground wire from the bucket to the motor .
That should give you a start .(edited)