added gallery management