Add setListener to remove listener after destroy.