modifications to allow insertion of remote widget source