finish data filtering for the table and the form