update index imput submit on enter