issue-#13

add autofocus logic for next and previous fields