helpers for browser events