Preventing double opening of settings tab (activating the already opened one). Close menu_panel properly