correct zoom and pan and open popup after search.