Fix links and update global figures at search type change