Fixes #1. Popup opens after search is complete