Add updateHappinessSlider function