preview mode set up