add plugin mode, can be embeded into iframes