Consolidated down the map and search functionality load and setup function calls on each page if its an index or not.