Wrap mainContent around global search view (fixes #281)