input widget and event init on main