Changed Preview.java