update price function and event for change price