update afterrender