Implement popup callback