fixed preview problem still need upload fix