Add link attribute to widget