dismiss keyboard when leaving edit mode