add function theme preview