Adding the slider to determine percentage and updating tip amount accordingly