Fixed exit error. Reworked main window UI. Implemented some functions like orders creation and orders loading.