Laying UI canvas on top of each other

In my game I have my main canvas which holds all types of menus and, I have a canvas attached to each chest. I want whatever is in the main canvas to always be on top of the chest canvas’s. Iv tried playing around with the layers but it doesn’t work. I’m assuming it has something to do with the chest canvas’s were made “last” but how do I make the main canvas always on top?

What you need is to set order in layer right, depending on your canvas’s render mode it will be called Sort Order (for Screen Space Overlay) and Order in Layer (Screen Space Camera). So if both have a Screen Space Camera render mode, you just have to set a higher value of Order in Layer for main canvas.