ADDED FUNCTIONALITY SO THAT WHEN THE  ADD OR SUBTRACT IS PRESSED THE ACTIVE STATE OF THE VALUE IS APPLIED

Also added function so that when you click on each of the time sections the value changes to the correct one