refactor render mgr