Prettified the widget-getting by storing references for future use
Added a utility to manage the id