Move all widgets generating code and their action code to Widgets class, adding mini-bar UI