working on render pausing