detailed page working with array