Move window loaded outside of the main class file