Updating timepicker logic