worked on preview component