Renamed search-overlay to main-overlay, so it can be reused.