updated models, added gallery delete