Partly completed the xaml bindings and command structure for the main window