close fields that are being edited when switching images.