use widget for form and view