refactoring rendering modules