added autofocus to grid input box