Modified the author view's foreach loops