mosfet, shift registers grounding issues

Hi thanks for reply,

didnt know optocoupler were better at isolating from mosfets.
I am actually running out of time at the current phase in my project to switch from mosfets

appreciate the insight,