rendering done after all events have been processed