code added to dismiss keyboard