Windows can be closed and maximized now, you can also change the button order inside the code. The layers don't work properly yet though