Refactoring the sigleton of Render