Fixed non unregistration of event listeners in photo upload controller