added focusItem function to give focus to first input on load, delete and add item