Only load search function if search form on page