add from and to time to preview endpoint.