implemented filtering & unfiltering the table