add Preview Source functionality.