Fixed the rendering not working for multiple things.
Created a module to manage the config for the window.