updated dynamic table filtering