update code, register input tab index