Preview mode logic and layout