added ability to reference gallery objects for the sake of saving/editing values