Adding additional hooks for galleries