adding filter tab detection to loadState