added register and unregister listener
added register and unregister listener