changed to event delegation for photo clicks to avoid bug that prevents photo show view from popping up