handing hiding keyboard when input is in the middle of page