event handler for changing records