refactored the window loader