Refactored provider controller and created search form

do it