Widgets separation into two modules with reuse of code using inheritance