Add logic for when changes have been made

"dirty" bit. Works in Chrome ... haven't tried IE