now fills time value onclick incase page was not reloaded, fixed total hours