on click of the button update the time on the same screen