working on gallery manager