Add an advanced search form on the search results page.
Fix error on upload page due to undefined properties variable.