added rollback script; added all kinds of hackish shit to gallery controller