moved index print to partial