serch is working

only needs a proper view
refactored