implemented search result pagination

also moved results into table