search page redone

now the table only created if all the criteria matched