refactoring render classes