on_modified fires after each keystroke, not good for performance. have
to find a way to save a modified state or something