Added dismissing of keyboard after editing