Palin visits Gettysburg on historic tour