updates preview