refactoring and display controls

Mainwindow now shows controlls that are connected