Pause menu

Hello everyone, i have kinda a weird problem that i can’t solve with my pause menu.
I have a pause menu that open when i press p and close when i press it again everything work fine. But when i open my param widget with a button in that pause menu and that i come back to that pause menu with a button in the param menu. I press p to close the pause menu the game isn’t paused anymore i get the player control back but the menu stay open.
The nodes in the B flip flop are used because the game is depaused when i press it again but i have to click on the screen to get the control back and i can’t interact with the menu but it stay open