fixed popup opening for iOS safari