automatic focus the inputs