making common widget and the filterwidget