added the adapter listener