Added code for add and get related wids
Added code for add and get related wids