Made search page work