Pass callback to popup show/hide