Unity UI button frozen

So I have created a canvas that holds two panels 1 for pause menu that holds 3 buttons and another that is called settings menu that holds 3 buttons a panel and a slider. when i click my options button with click functions (picture 1 as reference) hide the panel that it is on and brings up a new panel unfortunately it fezes and I cannot work use the panel unless I unpause and pause (image 2).


try removing one of those two calls to the same function in the OnClick. soemthing doesn’t look right to me there