text preview implemented