(bluefox) filter states with history in dialog