move templates out of widget.
access check on browser objects