Changed how the custom windows are accessed in the settings controller class