Changed event to on focus for photo gallery launching.