add time edit functionality