Updating Gallery Functions