add option to specify an external uri in portlet.