modifies pages controller to strip it