updating host gallery script to work with new classes and objects