inspector: removing unused tabs and keeping recording tab closed when recorder isn't used