Fix autofill bug

Add special js for autofill onchange fires, some code changes