update host and guest gallery code. simpler now.