added attrs handling for widgets as widgets are used inside our custom classes