Added parent parameter to on_display callback
Added event for widget construction