search works in the main page