search implemented. Result table to be fomatted properly