added a functionality to dismiss a keyboard on scroll