add code preview