fixed the private field and image mamangement on gallery pages. Added buttons