Correctly assigns array values and displays correctly when new