fix search autocomplete setup

was being initialized prior to search view being on page due to Thorax
layout-view refactoring.
formatting