invalidated event fired from the item when something changes
added invalidation in rectangle class