clear the console when starting preview mode