added preview UI