added control if layer has been modified