Improved controls in LoadWindow
fixed some errors