How can I stop the widgets from overlapping on eachother whenever I click on actors?

You can set the Z-order of the widget when you add it to viewport in the blueprint, higher number means higher priority

image