added function to link custom widgets