Preview logic integrated