Update price function