attached event to setting