table search function added, needs work