update on input-change and submit