Added refresh on finish rendering