gallery opens to choose a photo, does nothing when the photo is chosen yet