fix exploding notes style.width/height when "updateColor" is first event fired
write persistent notes file when note deleted