added example code for linkiing widget