updating data component