Working a little more on it, just cleaning up code, tried to make the close window, but I don't know if it is possible.