Fixed hiding the keyboard and scrolling the view when keyboard is shown