fixing popup events for touchscreen