update public index - need to change to an erb file