Only bind the search form when needed