Changed adding onclick listener to declarative way
Set controller for widget, not using global variable
Set controller for widget from widget, not from relative pointer