removes debug on gallery detail, fixes form error, fix indent