fix for onclick popup not working on chrome