Move widgets creation from Application to Applicationwindow