add final code preview