made preview work by editing in proper file names