Changed method of auto-scrolling when the keyboard is hiding the text view