Passing previous and current value to event handlers when a change occurs