updated for full window preview