removing duplicate classes from preview button