Nextion and mega grounds

I have a question? im using a 7" display and I have a separate 5V power supply for it, then the one Im using for the mega, the question I have do I tie the grounds together? right now I have floating grounds and Im having some weird issues with it.

Yes. You need to connect the grounds.

Common ground and why you need one

Thanks I figured thats what the problem was.