update demo : auto submit on idle