adding attribute changes events