A lot of work on the design of main view(both fxml and css are touched) and code for drag,close or minimize the main window.