fix: close inspector as well when changing tab