updated preview endpoint