You just need to apply dynamic linking. When you will hover over the widget, option 4th from left is for dynamic linking. just apply this and you will be able to do linking part.