Collapse close opened pages inside the Right or Left Panel on close or open panels?

Is it possible to force Framework7 to collapse (close) all opened pages inside the Right or Left Panel on close or open the panels?

the good thing will be that I can set all the levels to collapse or close when I close the right panel so when entering again none of them is opened and I need to click to refresh the page…

or maybe that when entering the panels all the pages inside them are collapsed or closed if one of them is opened then it is now closed… or maybe detect that page is already opened and refresh the content…

is it possible?
thanks for any ideas or tips!