fix preview function on edit page