kinda working search page

changed a few variables on other pages as well