Add preview functionality