added embeddable mode