add working search function with paging, design overhaul #3