preview widget work