temp (ugly) preview functionality added