theme preview logic is done