add customs adapter and listeners