Refactored a bit of ThemeManager so that its function that initializes itself