begin optim for details page