refactor render classes into separate namespace