Fixed bugs, optimizations

Fixed window not being able to be moved.
Fixed GUI not closing when switch to another vehicle.
- Also, if you switch back, GUI will be in state it was.
GUI is now halted when not visible.

Code could be optimized even further if we can find an event that fires on craft change (Should be OnVesselChange but cannot seem to get it to work)