added code for listening Changes