refactor grid renderer with bufferMan