render timing

refactoring the render method in our test app