added preivew support