Add onFocus callback to popups