render queue refactoring